package com.zhuo.project.order.domain;

import com.zhuo.framework.aspectj.lang.annotation.Excel;
import com.zhuo.framework.web.domain.BaseEntity;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
 * 处方单退药明细对象 zz_diagnose_return
 * 
 * @author zhuo
 * @date 2020-03-26
 */
public class ZzDiagnoseReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 处方ID */
    @Excel(name = "处方ID")
    private String diagnoseId;

    /** 发药单号 */
    @Excel(name = "发药单号")
    private String sendId;

    /** 退药单号 */
    @Excel(name = "退药单号")
    private String returnId;

    /** 配发药状态（1 草稿 2 已退 3 已回传K3） */
    @Excel(name = "配发药状态", readConverterExp = "1=,草=稿,2=,已=退,3=,已=回传K3")
    private Integer sendStatus;

    /** 行项目号 */
    @Excel(name = "行项目号")
    private Integer itemNo;

    /** 发药行项目号 */
    @Excel(name = "发药行项目号")
    private Integer sendItemNo;

    /** 物料ID */
    @Excel(name = "物料ID")
    private String materialId;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 卓正识别码 */
    @Excel(name = "卓正识别码")
    private String barcode;

    /** 退药数量 */
    @Excel(name = "退药数量")
    private Double returnQty;

    /** 退药规格 */
    @Excel(name = "退药规格")
    private Double returnUnit;

    /** 退药规格名称 */
    @Excel(name = "退药规格名称")
    private String returnUnitName;

    /** 错误信息 */
    @Excel(name = "错误信息")
    private String error;

    /** 状态（0正常 1关闭） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=关闭")
    private Integer isValid;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDiagnoseId(String diagnoseId) 
    {
        this.diagnoseId = diagnoseId;
    }

    public String getDiagnoseId() 
    {
        return diagnoseId;
    }
    public void setSendId(String sendId) 
    {
        this.sendId = sendId;
    }

    public String getSendId() 
    {
        return sendId;
    }
    public void setReturnId(String returnId) 
    {
        this.returnId = returnId;
    }

    public String getReturnId() 
    {
        return returnId;
    }
    public void setSendStatus(Integer sendStatus) 
    {
        this.sendStatus = sendStatus;
    }

    public Integer getSendStatus() 
    {
        return sendStatus;
    }
    public void setItemNo(Integer itemNo) 
    {
        this.itemNo = itemNo;
    }

    public Integer getItemNo() 
    {
        return itemNo;
    }
    public void setSendItemNo(Integer sendItemNo) 
    {
        this.sendItemNo = sendItemNo;
    }

    public Integer getSendItemNo() 
    {
        return sendItemNo;
    }
    public void setMaterialId(String materialId)
    {
        this.materialId = materialId;
    }

    public String getMaterialId()
    {
        return materialId;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setBarcode(String barcode) 
    {
        this.barcode = barcode;
    }

    public String getBarcode() 
    {
        return barcode;
    }
    public void setReturnQty(Double returnQty) 
    {
        this.returnQty = returnQty;
    }

    public Double getReturnQty() 
    {
        return returnQty;
    }
    public void setReturnUnit(Double returnUnit) 
    {
        this.returnUnit = returnUnit;
    }

    public Double getReturnUnit() 
    {
        return returnUnit;
    }
    public void setReturnUnitName(String returnUnitName) 
    {
        this.returnUnitName = returnUnitName;
    }

    public String getReturnUnitName() 
    {
        return returnUnitName;
    }
    public void setError(String error) 
    {
        this.error = error;
    }

    public String getError() 
    {
        return error;
    }
    public void setIsValid(Integer isValid) 
    {
        this.isValid = isValid;
    }

    public Integer getIsValid() 
    {
        return isValid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("diagnoseId", getDiagnoseId())
            .append("sendId", getSendId())
            .append("returnId", getReturnId())
            .append("sendStatus", getSendStatus())
            .append("itemNo", getItemNo())
            .append("sendItemNo", getSendItemNo())
            .append("materialId", getMaterialId())
            .append("materialName", getMaterialName())
            .append("barcode", getBarcode())
            .append("returnQty", getReturnQty())
            .append("returnUnit", getReturnUnit())
            .append("returnUnitName", getReturnUnitName())
            .append("error", getError())
            .append("isValid", getIsValid())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
